<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/header.css">
<link rel="stylesheet" href="font/iconfont.css">
<!--================= 顶部图片============================== -->
<div class="pic"><img src="img/1top.jpg" alt=""></div>
<!--====================== 登录注册=================== -->
<div class="nav">
    <div class="tiao center">
        <div class="left">
            <div class="dingwei"><span></span>西安市</div>
            <div class="denglu">
                <a href="register.html" id="denglulili">请登录</a>
            </div>
            <div class="zhuce">
                <a href="zhuce.html">免费注册</a>
            </div>
        </div>
        <ul class="center">
            <li><a href="">我的订单</a></li>
            <li></li>
            <li><a href="">我的浏览</a></li>
            <li></li>
            <li><a href="">我的收藏</a></li>
            <li></li>
            <li>网站导航 ></li>
        </ul>
    </div>
</div>
<!-- ===================搜索模块======================= -->
<header class="center">
    <h1><a href="index.html"><img src="img/shop_logo.png" alt=""></a></h1>
    <div class="search">
        <div class="shang">
            <input type="text" name="" id="" placeholder="  豫扶网">
            <button class="but1">搜商品</button>
            <button class="but2">搜店铺</button>
        </div>
        <div class="xia">
            <!-- <ul>
                    <li><a href=""></a></li>
                </ul> -->
            <span><a href="">豫扶网</a></span>
            <span><a href="">米面粮油</a></span>
            <span><a href="">杂粮</a></span>
            <span><a href="">干果</a></span>
        </div>
    </div>
    <div class="shopcar">
        <a href="shopcar.html"><span class="iconfont icon-gouwuche"></span>
            <span class="s2">我的购物车</span>
            <span class="s3">0</span></a>
    </div>
</header>
<!-- =====================导航栏========================= -->
<nav class="center">
    <div class="shoplist">
        <a href="#">全部商品分类</a>
        <div class="goodslist ">
            <ul>
                <li><a href="snacks.html"><img src="img/errorImg.png" alt=""><span class="s1">休闲食品</span></a>
                    <div class="List">
                        <img src="img/11.jpg" alt="">
                        <img src="img/12.jpg" alt="">
                    </div>
                </li>
                <li><a href="snacks.html"><span class="iconfont icon-dingdan"></span><span class="s1">粮油调味</span></a>
                    <div class="List">
                        <img src="img/13.jpg" alt="">
                        <img src="img/14.jpg" alt="">
                    </div>
                </li>
                <li><a href="snacks.html"><img src="img/errorImg.png" alt=""><span class="s1">坚果零食</span></a>
                    <div class="List">
                        <img src="img/15.jpg" alt="">
                        <img src="img/16.jpg" alt="">
                    </div>
                </li>
                <li><a href="snacks.html"><span class="iconfont icon-pingguo"></span><span class="s1">干果干菜</span></a>
                    <div class="List">
                        <img src="img/17.jpg" alt="">
                        <img src="img/18.jpg" alt="">

                    </div>
                </li>
                <li><a href="snacks.html"><img src="img/errorImg.png" alt=""><span class="s1">米面杂粮</span></a>
                    <div class="List">
                        <img src="img/19.jpg" alt="">
                        <img src="img/20.jpg" alt="">

                    </div>
                </li>
                <li><a href="snacks.html"><span class="iconfont icon-shipinyinliao"></span><span
                            class="s1">饮料茶叶</span></a>
                    <div class="List">
                        <img src="img/21.jpg" alt="">
                        <img src="img/22.jpg" alt="">

                    </div>
                </li>
                <li><a href="snacks.html"><img src="img/errorImg.png" alt=""><span class="s1">团购专区</span></a>
                    <div class="List">
                        <img src="img/23.jpg" alt="">
                        <img src="img/24.jpg" alt="">

                    </div>
                </li>
            </ul>

        </div>
    </div>
    <ul class="ul1">
        <li><a href="index.html">首页</a></li>
        <li><a href="snacks.html">精品好货</a></li>
        <li><a href="snacks.html">零食专区</a></li>
        <li><a href="snacks.html">坚果专区</a></li>
        <li><a href="snacks.html">充值中心</a></li>
        <li><a href="snacks.html">限时优惠</a></li>
        <li><a href="snacks.html">政府文件</a></li>
        <li><a href="snacks.html">团购专区</a></li>
    </ul>
</nav>

<script src="js/cookie.js"></script>
<script>
    // console.log(document.cookie);
    // console.log(getCookie("userna"));
    if (getCookie("userna") != "") {
        // console.log(111);
        $("#denglulili").html("你好，刘理理");
        
        // $(window).attr("location", "index.html")

    } else {
        // console.log(22);
        $("#denglulili").html("登录");
    }

</script>